
# 全部编译
# all:file exchange queue binding
connection:connection_test.cpp ../mqcommon/message.pb.cc ../mqcommon/protocol.pb.cc 
	g++ -o $@ $^ -std=c++14 -lgtest -lprotobuf -lsqlite3
channel:channel_test.cpp ../mqcommon/message.pb.cc ../mqcommon/protocol.pb.cc 
	g++ -o $@ $^ -std=c++14 -lgtest -lprotobuf -lsqlite3
consumer:consumer_test.cpp
	g++ -o $@ $^ -std=c++14 -lgtest 
route:route_test.cpp
	g++ -o $@ $^ -std=c++14 -lgtest 
host:host_test.cpp ../mqcommon/message.pb.cc 
	g++ -o $@ $^ -std=c++14 -lgtest -lprotobuf -lsqlite3
message:message_test.cpp ../mqcommon/message.pb.cc 
	g++ -o $@ $^ -std=c++14 -lgtest -lprotobuf
binding:binding_test.cpp
	g++ -o $@ $^ -std=c++14 -lgtest -lsqlite3
queue:queue_test.cpp
	g++ -o $@ $^ -std=c++14 -lgtest -lsqlite3
exchange:exchange_test.cpp
	g++ -o $@ $^ -std=c++14 -lgtest -lsqlite3
file:file_test.cpp
	g++ -o $@ $^ -std=c++11
.PHONY:clean
clean:
	rm -f file exchange queue binding message host route consumer channel connection